package at.spengergasse.model;

import org.junit.Test;

public class bestellenTest
{
	private final int menge = 2;

	Bestellen b = new Bestellen(1L, menge);

	public void setCorrect()
	{
		new Bestellen(1L, menge);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testSetMenge()
	{
		b.setMenge(-1);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testSetPos()
	{
		b.setPosition(-1);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testSetProdukt()
	{
		b.setProdukt(null);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testSetRechnung()
	{
		b.setRechnung(null);
	}

}
